package com.ruoyi.web.controller.sqlservice.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * SQL接口模板对象 sys_sql
 *
 * @author Zliming
 * @date 2020-03-30
 */
public class SysSql extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 模板名 */
    @Excel(name = "模板名")
    private String sqlName;

    /** 访问令牌 */
    @Excel(name = "访问令牌")
    private String token;

    /** SQL模板 */
    @Excel(name = "SQL模板")
    private String template;

    /** 数据源 */
    @Excel(name = "数据源")
    private String ds;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }
    public void setSqlName(String sqlName) {
        this.sqlName = sqlName;
    }

    public String getSqlName() {
        return sqlName;
    }
    public void setToken(String token) {
        this.token = token;
    }

    public String getToken() {
        return token;
    }
    public void setTemplate(String template) {
        this.template = template;
    }

    public String getTemplate() {
        return template;
    }
    public void setDs(String ds) {
        this.ds = ds;
    }

    public String getDs() {
        return ds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sqlName", getSqlName())
            .append("token", getToken())
            .append("template", getTemplate())
            .append("ds", getDs())
            .toString();
    }
}
